package com.lianbang.pharmacy.http.intercept

import okhttp3.*
import okio.Buffer
import java.io.IOException
import java.util.*

/**
 * Created by maoqi on 2020/9/22.
 */
class ParamIntercept : Interceptor {
    @Throws(IOException::class)
    override fun intercept(chain: Interceptor.Chain): Response {
        val original = chain.request()
        val httpUrl = original.url()
        val httpBuilder = httpUrl.newBuilder()
        val requestBuilder = original.newBuilder()
        return chain.proceed(requestBuilder.build())
    }
}